package me.lwn.auth.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Entity
@Table(name = "oauth2_locked_record")
public class LockedRecord {

    @Id
    private String id;
    private String username;
    private String clientId;
    private String ipHost;
    private LocalDateTime lockedTime;
    private LocalDateTime expireTime;
    private LocalDateTime releaseStatus;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getIpHost() {
        return ipHost;
    }

    public void setIpHost(String ipHost) {
        this.ipHost = ipHost;
    }

    public LocalDateTime getLockedTime() {
        return lockedTime;
    }

    public void setLockedTime(LocalDateTime lockedTime) {
        this.lockedTime = lockedTime;
    }

    public LocalDateTime getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(LocalDateTime expireTime) {
        this.expireTime = expireTime;
    }

    public LocalDateTime getReleaseStatus() {
        return releaseStatus;
    }

    public void setReleaseStatus(LocalDateTime releaseStatus) {
        this.releaseStatus = releaseStatus;
    }
}